//
//  JJOneViewController.m
//  testP
//
//  Created by 陈家将 on 16/7/14.
//  Copyright © 2016年 chenjiajiang. All rights reserved.
//

#import "JJOneViewController.h"

@interface JJOneViewController ()

@end

@implementation JJOneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    /* =======================
     1. 如果这里的title与tabBarController初始化添加子控制器时的不一样,就会出现次问题;一样则不会出现;这里的修改既修改了底部tabBar的item标题,也修改了顶部导航栏的标题.
    2. 拓展,修改图片也一样
    3.猜想:涉及State的所有属性均会发生变化
     ========================*/
//    self.title = @"我的diff"; //与控制器 "我"的title不一样,但是却是同一个控制器
//    self.tabBarItem.title = @"我Diff";
    
    //涉及状态相关的所有属性均会发生此状况
//    self.tabBarItem.image = [UIImage imageNamed:@"tabBar_me_icon"];//图片与控制器中的一样,依然发生改变
//    self.tabBarItem.selectedImage = [UIImage imageNamed:@"tabBar_me_click_icon"];//图片与控制器中的一样
//    
//    NSMutableDictionary *attSS = [NSMutableDictionary dictionary];
//    attSS[NSFontAttributeName] = [UIFont systemFontOfSize:14 weight:1];
//    attSS[NSForegroundColorAttributeName]   =  [UIColor orangeColor];
//    [self.tabBarItem setTitleTextAttributes:attSS forState:UIControlStateSelected];
    
}
 
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
